package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:38
 * @Description: TODO
 */
@TableName("t_security_warning")
public class SecurityWarning {
    private Long id;

    private Boolean mark;

    private Date createTime;

    private String address;

    private String event;

    public com.caipin.domain.table.SecurityWarning setId(Long id) {
        this.id = id;
        return this;
    }

    public com.caipin.domain.table.SecurityWarning setMark(Boolean mark) {
        this.mark = mark;
        return this;
    }

    public com.caipin.domain.table.SecurityWarning setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public com.caipin.domain.table.SecurityWarning setAddress(String address) {
        this.address = address;
        return this;
    }

    public com.caipin.domain.table.SecurityWarning setEvent(String event) {
        this.event = event;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.SecurityWarning))
            return false;
        com.caipin.domain.table.SecurityWarning other = (com.caipin.domain.table.SecurityWarning)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$mark = getMark(), other$mark = other.getMark();
        if ((this$mark == null) ? (other$mark != null) : !this$mark.equals(other$mark))
            return false;
        Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
        if ((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime))
            return false;
        Object this$address = getAddress(), other$address = other.getAddress();
        if ((this$address == null) ? (other$address != null) : !this$address.equals(other$address))
            return false;
        Object this$event = getEvent(), other$event = other.getEvent();
        return !((this$event == null) ? (other$event != null) : !this$event.equals(other$event));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.SecurityWarning;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $mark = getMark();
        result = result * 59 + (($mark == null) ? 43 : $mark.hashCode());
        Object $createTime = getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        Object $address = getAddress();
        result = result * 59 + (($address == null) ? 43 : $address.hashCode());
        Object $event = getEvent();
        return result * 59 + (($event == null) ? 43 : $event.hashCode());
    }

    public String toString() {
        return "SecurityWarning(id=" + getId() + ", mark=" + getMark() + ", createTime=" + getCreateTime() + ", address=" + getAddress() + ", event=" + getEvent() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public Boolean getMark() {
        return this.mark;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public String getAddress() {
        return this.address;
    }

    public String getEvent() {
        return this.event;
    }
}

